﻿using System.Collections.Generic;
using System.Web.Script.Serialization;

namespace MeresModeling
{
    public class DbTableModel
    {
        public string Name { get; set; }
        public string Title { get; set; }
        public List<DbTableColumnModel> Columns { get; set; }
    }

    public class DbTableColumnModel
    {
        public string Name { get; set; }
        public string Title { get; set; }
        [ScriptIgnore]
        public DbTableModel Table { get; set; }

        public bool IsPrimaryKey { get; set; }
    }
}